The delicious sweet treat starts life as bitter, slimy, white beans.
Chocolate is made from the beans of Theobroma cacao, a small evergreen tree native to the rainforests of Central and South America. Translating as ‘food of the Gods’ in Greek, its elongated pods grow up to 35cm and vary in colour from bright yellow to deep purple.
Archaeological evidence - traces of cacao on ancient pottery - suggests we’ve been indulging in cacao products for as long as 5,300 years (3,300 BC). The Mayans, indigenous people of Central America and Mexico, enjoyed it as a thick, foamy, bitter drink and the beans were potentially even used as currency by the years 250 - 900.
The beans were so revered that the Aztecs (circa 1345 - 1521) believed that cacao was a gift from the god Quetzalcoatl. They continued the Mayan tradition of preparing cacao as a drink, and it was enjoyed by rulers, priests and noblemen. Cacao was consumed for a variety of purposes including medicinal and as an aphrodisiac, and formed part of the rations supplied to Aztec soldiers. On special occasions, such as weddings, even lower-class members of society would be treated to a sip of the divine drink.
Today, cacao is grown commercially grown in the tropical zones around the equator where climate conditions are well suited for their finicky nature; high temperatures, plenty of rainfall and moist air, while the rainforest canopy provides shade and protection from the wind.
The Theobroma cacao tree bears flowers in small groups along the trunk and lower main branches. Once pollinated, these flowers develop into berries, called ‘pods’. The pods take around five or six months to mature and ripen, turning a yellowy-orange colour as they do so.
The elongated pods are harvested by hand and split open to reveal between 20 to 60 oval beans arranged along the long axis in a sweet, white, mucilaginous pulp. This usually happens on the same day as they are harvested, or at least within a few days.
If you want to, you can eat the cacao beans raw, and they have a bitter, earthy flavour.
The pulp and the beans are scooped out of the pods, and the beans are separated from the placenta. Careful fermentation develops the flavour by microbial succession.
First, the yeasts react, then the lactic acid bacteria, and finally the acetic bacteria. The fermentation process essentially modifies the beans and eliminates the mucilage, changing the colour, taste and smell of the beans.
The beans are dried to remove the moisture content. Traditionally, this is done naturally by the Sun, and the drying process continues to develop the flavour. Drying the beans quickly will result in a more bitter taste, but careful moderation will allow volatile acetic acid to evaporate during the drying process, resulting in a less acidic (and more pleasant) taste.
Roasting develops the flavour further, and also sterilises the beans, killing microorganisms (like bacteria) on the outer shell. Successful fermentation is an important microbial process, and will naturally create conditions ideal for bacteria, fungi and mould, so roasting is essential to remove these potentially dangerous pathogens.
Roasting also helps to get rid of some of the lingering acidic flavours, and makes the next stage much easier.
The roasted beans are cracked by applying pressure with a cacao crusher, separating the husks from the beans.
Winnowing removes the lighter husks and dust particles, leaving the heavier beans or ‘nibs’.
Originally, winnowing was done by hand in a winnowing basket. The beans would be tossed into the air before being caught again in the basket, causing the brittle shells to break apart and separate from the beans. If done outside on a windy day, the lighter shells would blow away and the heavier nibs would fall back into the basket. Clever!
Today, it's mostly done by a winnower machine. Vibrating shelves shake the beans, causing them to fall through a series of screens before a vacuum removes the lighter shells, leaving the precious nibs ready for the next stage.
The now shell-less beans are ground up, and sugar is added. Cacao nibs are naturally quite bitter with a strong flavour, so adding sugar makes them sweeter.
Adding sugar was a later development in the production of chocolate, having come about in the 16th Century, after the beans arrived in Spain.
Slowly heating and cooling the chocolate allows the fats to crystallise uniformly and the chocolate to break with a satisfying snap. It also helps give chocolate that smooth and glossy finish.
The mixture is poured into a mould where it cools, before being packaged and shipped off to distribution centres ready for eating.
To submit your questions email us at questions@sciencefocus.com (don't forget to include your name and location)
Holly is the staff writer at BBC Science Focus. Before joining the team she was a geoenvironmental consultant and holds an MSc in Geoscience from UCL.
Subscribe and try your first 3 issues for just £5. After your introductory period you will pay just £22.99 every 6 issues by Direct Debit. Receive every issue delivered direct to your door with FREE UK delivery.
Subscribe to BBC Science Focus Magazine and try 3 issues for just £5
Discover our latest special editions covering a range of fascinating topics from the latest scientific discoveries to the big ideas explained.
Listen to some of the brightest names in science and technology talk about the ideas and breakthroughs shaping our world.
Our daily newsletter arrives just in time for lunch, offering up the day's biggest science news, our latest features, amazing Q&As and insightful interviews. PLUS a free mini-magazine for you to download and keep.
By entering your details, you are agreeing to our terms and conditions and privacy policy. You can unsubscribe at any time.